//
//  KDWeekCell.h
//  KDCalendarControl
//
//  Created by Keith Duncan on 07/07/2007.
//  Copyright 2007 thirty-three. All rights reserved.
//

#import <Cocoa/Cocoa.h>

enum {
	AFStringDisplayLowerCase,
	AFStringDisplayUpperCase,
	AFStringDisplayCapitalized,
};
typedef NSUInteger AFStringDisplayOption;

NS_INLINE NSRect AFDayRectForRowRect(NSRect rowRect, NSUInteger column, NSUInteger count) {
	NSRect dayRect = rowRect;
	dayRect.size.width = NSWidth(rowRect)/count;
	dayRect.origin.x = NSMinX(rowRect) + (NSWidth(dayRect) * column);
	return dayRect;
}

@interface AFCalendarWeekCell : NSCell {
	NSArray *_dayNames;
	NSUInteger _displayOption, _titleLength;
	
	NSIndexSet *_selectedDays;

	NSColor *_selectedColor, *_regularColor;
}

- (void)setTitleLength:(NSUInteger)value;
- (void)setDisplayOption:(AFStringDisplayOption)type;

@property(retain) NSIndexSet *selectedDays;

@property(retain) NSColor *selectedColor, *regularColor;

@end
